package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MineExamMapper;
import com.ruoyi.system.domain.MineExam;
import com.ruoyi.system.service.IMineExamService;

/**
 * 试卷Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-14
 */
@Service
public class MineExamServiceImpl implements IMineExamService 
{
    @Autowired
    private MineExamMapper mineExamMapper;

    /**
     * 查询试卷
     * 
     * @param examId 试卷主键
     * @return 试卷
     */
    @Override
    public MineExam selectMineExamByExamId(Long examId)
    {
        return mineExamMapper.selectMineExamByExamId(examId);
    }

    /**
     * 查询试卷列表
     * 
     * @param mineExam 试卷
     * @return 试卷
     */
    @Override
    public List<MineExam> selectMineExamList(MineExam mineExam)
    {
        return mineExamMapper.selectMineExamList(mineExam);
    }

    /**
     * 新增试卷
     * 
     * @param mineExam 试卷
     * @return 结果
     */
    @Override
    public int insertMineExam(MineExam mineExam)
    {
        return mineExamMapper.insertMineExam(mineExam);
    }

    /**
     * 修改试卷
     * 
     * @param mineExam 试卷
     * @return 结果
     */
    @Override
    public int updateMineExam(MineExam mineExam)
    {
        return mineExamMapper.updateMineExam(mineExam);
    }

    /**
     * 批量删除试卷
     * 
     * @param examIds 需要删除的试卷主键
     * @return 结果
     */
    @Override
    public int deleteMineExamByExamIds(Long[] examIds)
    {
        return mineExamMapper.deleteMineExamByExamIds(examIds);
    }

    /**
     * 删除试卷信息
     * 
     * @param examId 试卷主键
     * @return 结果
     */
    @Override
    public int deleteMineExamByExamId(Long examId)
    {
        return mineExamMapper.deleteMineExamByExamId(examId);
    }
}
